<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>库存列表</a></li>
		</ul>
		<form method="post" class="js-ajax-form margin-top-20" action="{:url('goods_spec_stock/edit')}">
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th width="150">规格</th>
					<th>规格编码</th>
					<th>规格条码</th>
					<th>零售价</th>
					<th>标准价</th>
					<th>库存</th>
					<th>重量（kg）</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="lists" item="vo">
				<tr>
					<td>
						{$vo.id}
						<input type="hidden" name="stock_data[{$key}][id]" value="{$vo.id}">
					</td>
					<td>{$vo.spec_text}</td>
					<td>
						<input type="text" class="form-control" name="stock_data[{$key}][code]" value="{$vo.code}">
					</td>
					<td>
						<input type="text" class="form-control" name="stock_data[{$key}][barcode]" value="{$vo.barcode}">
					</td>
					<td>
						<input type="text" class="form-control" name="stock_data[{$key}][retail_price]" value="{$vo.retail_price}">
					</td>
					<td>
						<input type="text" class="form-control" name="stock_data[{$key}][standard_price]" value="{$vo.standard_price}">
					</td>
					<td>
						<input type="text" class="form-control" name="stock_data[{$key}][stock]" value="{$vo.stock}">
					</td>
					<td>
						<input type="text" class="form-control" name="stock_data[{$key}][weight]" value="{$vo.weight}">
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<button type="submit" class="btn btn-primary js-ajax-submit" >{:lang('SAVE')}</button>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>